package imagecutter.amra;

import java.awt.image.BufferedImage;

/**
 * Needed image operations.
 */
public class ImageOperation {

    /**
     * Returns a image which is part of input image. The selection is specified
     * as rectangle.
     * @param input image
     * @param rectangle subimage specification
     * @return subImage
     */
    public static BufferedImage subImage(BufferedImage input, Rectangle rectangle){
        return null;
    }

    /**
     * Loads rectangle for image.
     * @param input
     * @return
     */
    public static Rectangle loadRectangleForImage(BufferedImage input){
        return new Rectangle(0, 0, input.getWidth(), input.getHeight());
    }

}
